home *** CD-ROM | disk | FTP | other *** search
/ CD Fun House 1 / CD Fun House (Wayzata Technology).iso / •Word Games• / HyperJotto 1.1 •••• / HyperJotto 1.1 ееее / card_15169.txt < prev    next >
Text File  |  1988-02-01  |  26KB  |  1,188 lines

  1. -- card: 15169 from stack: in.1 –µ–µ–µ–µ
  2. -- bmap block id: 18190
  3. -- flags: 4000
  4. -- background id: 2275
  5. -- name: Player
  6. ----- HyperTalk script -----
  7. on OpenCard
  8.   click at 321,100
  9. end OpenCard
  10.  
  11. on MouseUp
  12.   click at 321,100
  13. end MouseUp
  14.  
  15. on Idle
  16.   if last char of card field "Guess" is return then
  17.     delete last char of card field "Guess"
  18.     send closefield to card field "Guess"
  19.   end if
  20.   if card field "Guess" is empty then
  21.     click at 321,100
  22.     wait 15
  23.   end if
  24.  
  25.  
  26. end Idle
  27.  
  28. on definition
  29.   Global Target, Tgtpointer, LongClass
  30.   put "Definition" into card field "Guess"
  31.   if the visible of card btn "Hide" is true then
  32.     send mouseUp to card btn "Hide"
  33.   end if
  34.   set the lockscreen to true
  35.   put first char of Target into initial
  36.   get line Tgtpointer of field "DEFNS" of card initial
  37.   put it into defn
  38.   if it is empty then put "Considered Self-Explanatory" into defn
  39.   put Tgtpointer * 4 - 3 into pointer
  40.   put char pointer to pointer + 3 of field "CLASS" of card initial into checkclass
  41.   put checkclass into temp
  42.   translate checkclass
  43.   if first word of defn is "of" and last char of temp is "P" then put "Plural " & defn into defn
  44.   if first word of defn is "form" then put first word of LongClass && defn into defn
  45.   put Target & " ‚Äî " & defn & return & return into card field "Message"
  46.   put LongClass after card field "Message"
  47.   set the lockscreen to false
  48.   show card field "ClickMsg"
  49.   show card btn "OK"
  50.  
  51. end definition
  52.  
  53. on PlayAgain
  54.  
  55.   if the visible of card btn "Clear" is true then
  56.     send mouseUp to card btn "Clear"
  57.   end if
  58.   put empty into card field "Results"
  59.   put empty into card field "Guess"
  60.   picktarget
  61.   show card btn "Filters"
  62.   show card btn "Change"
  63.  
  64. end PlayAgain
  65.  
  66. On translate checkclass
  67.   Global FilterTable, LongClass
  68.   put empty into LongClass
  69.   repeat with n = 4 down to 1
  70.     if char n of checkclass is "*" then next repeat
  71.     put number of words of line n of FilterTable into limit
  72.     repeat with m = 1 to limit
  73.       if char n of checkclass = char 1 of word m of line n of FilterTable then
  74.         put word m of line n of FilterTable && LongClass into LongClass
  75.         exit repeat
  76.       end if
  77.     end repeat
  78.   end repeat
  79.   if last word of LongClass is not "Name" then
  80.     put LongClass & "Word" into LongClass
  81.   end if
  82.  
  83. end translate
  84.  
  85. on Archive
  86.   Global Target
  87.   get the number of lines of card field "Archive" of card "Archive"
  88.   if it <> 0 then
  89.     put return after card field "Archive" of card "Archive"
  90.     put return after card field "Archive" of card "Archive"
  91.   end if
  92.   put "--- Archived at" && the time && "on" && the abbr date && "---" & return after card field "Archive" of card "Archive"
  93.   put card field "Results" after card field "Archive" of card "Archive"
  94.   put "                           Answer = " & target & return after card field "Archive" of card "Archive"
  95.  
  96. end Archive
  97.  
  98.  
  99.  
  100.  
  101. -- part 1 (field)
  102. -- low flags: 00
  103. -- high flags: 0004
  104. -- rect: left=203 top=90 right=116 bottom=328
  105. -- title width / last selected line: 0
  106. -- icon id / first selected line: 0 / 0
  107. -- text alignment: 1
  108. -- font id: 3
  109. -- text size: 12
  110. -- style flags: 256
  111. -- line height: 22
  112. -- part name: Guess
  113. ----- HyperTalk script -----
  114. On CloseField
  115.   Global Target, Level, BadWord, FilterGuesses, LongClass
  116.   -- if player types more than one word, we ignore the surplus
  117.   set the cursor to 4
  118.   put first word of card field "guess" into guess
  119.  
  120.   CLICK AT 325,105
  121.   CLICK AT 325,105
  122.   --  put "CHECKING" into card field "guess"
  123.  
  124.   -- check length of guess
  125.  
  126.   if the number of chars of guess <> 5 then
  127.     play boing
  128.     answer "Guesses must have five characters"
  129.     put empty into card field "Guess"
  130.     exit CloseField
  131.   end if
  132.  
  133.   -- capitalize guess and check for all letters
  134.  
  135.   put true into goodword
  136.   repeat with i = 1 to 5
  137.     get chartonum of (char i of guess)
  138.     if it ‚â• 97 and it ‚⧠122 then
  139.       put it - 32 into temp
  140.       put numtochar of temp into char i of guess
  141.     else
  142.       if it < 65 or it > 90 then
  143.         put false into goodword
  144.         exit repeat
  145.       end if
  146.     end if
  147.   end repeat
  148.  
  149.   if goodword is false then
  150.     play boing
  151.     answer "Please enter letters only."
  152.     put empty into card field "Guess"
  153.     exit CloseField
  154.   end if
  155.  
  156.   -- CHECK TO SEE IF YOU'VE WON
  157.  
  158.   if guess = Target then
  159.     youwin
  160.     exit CloseField
  161.   end if
  162.  
  163.  
  164.   -- CHECK TO SEE IF THIS IS A REPEAT
  165.  
  166.   put offset (guess,card field "Results") into temp
  167.   if temp <> 0 then
  168.     play boing
  169.     answer "You've already guessed " & guess
  170.     put empty into card field "Guess"
  171.     exit CloseField
  172.   end if
  173.  
  174.   -- LET'S GO SEE IF WE KNOW THIS WORD
  175.  
  176.   put first char of guess into initial
  177.   put 0 into base
  178.   put 0 into pointer
  179.   put length of field "WORDS" of card initial into limit
  180.   repeat
  181.     put offset (char 2 to 5 of guess, char (base+1) to limit of field "WORDS" of card initial) + base into pointer
  182.     if pointer mod 4 is 1 then
  183.       exit repeat
  184.     end if
  185.     if pointer = base then
  186.       -- we don't recognize this word
  187.       play boing
  188.       Answer "Sorry, I don't recognize " & guess
  189.       put "‚Ä¢‚Ä¢‚Ä¢‚Ä¢‚Ä¢" into guess
  190.       exit repeat
  191.     end if
  192.  
  193.     put pointer into base
  194.   end repeat
  195.  
  196.   -- NOW CHECK TO SEE IF guess isn't filtered out
  197.   put false into goodguess
  198.   if guess <> "‚Ä¢‚Ä¢‚Ä¢‚Ä¢‚Ä¢" then
  199.     put true into goodguess
  200.     If FilterGuesses is true then
  201.       put char pointer to pointer + 3 of field "CLASS" of card Initial into checkclass
  202.       checkfilters checkclass
  203.       if BadWord is not "****" then
  204.         translate BadWord
  205.         put last word of LongClass & "s" into last word of LongClass
  206.         play boing
  207.         answer "No " & LongClass
  208.         put empty into card field "Guess"
  209.         exit CloseField
  210.       end if
  211.  
  212.     end if
  213.   end if
  214.  
  215.  
  216.   -- NOW GET RESULT
  217.   put guess into cguess
  218.   put Target into ctarg
  219.   put empty into result
  220.   if Level mod 2 is 1 then  put "-----" into result
  221.   if goodguess is true then
  222.  
  223.     get offset (char 1 of cguess,ctarg)
  224.     if it is not 0 then
  225.       if Level > 2 then put "*" into char it of ctarg
  226.       if Level mod 2 is 1 then
  227.         put char it of ctarg into char it of result
  228.       else
  229.         put char it of ctarg before result
  230.       end if
  231.       put "*" into char it of ctarg
  232.     end if
  233.  
  234.     get offset (char 2 of cguess,ctarg)
  235.     if it is not 0 then
  236.       if Level > 2 then put "*" into char it of ctarg
  237.       if Level mod 2 is 1 then
  238.         put char it of ctarg into char it of result
  239.       else
  240.         put char it of ctarg before result
  241.       end if
  242.       put "*" into char it of ctarg
  243.     end if
  244.  
  245.     get offset (char 3 of cguess,ctarg)
  246.     if it is not 0 then
  247.       if Level > 2 then put "*" into char it of ctarg
  248.       if Level mod 2 is 1 then
  249.         put char it of ctarg into char it of result
  250.       else
  251.         put char it of ctarg before result
  252.       end if
  253.       put "*" into char it of ctarg
  254.     end if
  255.  
  256.     get offset (char 4 of cguess,ctarg)
  257.     if it is not 0 then
  258.       if Level > 2 then put "*" into char it of ctarg
  259.       if Level mod 2 is 1 then
  260.         put char it of ctarg into char it of result
  261.       else
  262.         put char it of ctarg before result
  263.       end if
  264.       put "*" into char it of ctarg
  265.     end if
  266.  
  267.     get offset (char 5 of cguess,ctarg)
  268.     if it is not 0 then
  269.       if Level > 2 then put "*" into char it of ctarg
  270.       if Level mod 2 is 1 then
  271.         put char it of ctarg into char it of result
  272.       else
  273.         put char it of ctarg before result
  274.       end if
  275.       put "*" into char it of ctarg
  276.     end if
  277.   end if
  278.  
  279.   set the lockscreen to false
  280.   set the locktext of card field "Results" to false
  281.   get the number of lines of card field "Results"
  282.   put it +1 into nmbr
  283.   if length of nmbr < 2 then put " " into spce
  284.   else put empty into spce
  285.   put spce & nmbr & "." && guess & "  " & result & return after card field "Results"
  286.  
  287.   set the locktext of card field "Results" to true
  288.   put empty into card field "Guess"
  289.   set the visible of card btn "Filters" to false
  290.   set the visible of card btn "Change" to false
  291.  
  292.   -- CHECK TO SEE IF YOU'VE USED UP YOUR GUESSES
  293.  
  294.   if the number of lines of card field "Results" is 23 then
  295.     youlose
  296.     exit CloseField
  297.   end if
  298.  
  299.   type tab
  300.  
  301. end CloseField
  302.  
  303. on youwin
  304.   Global Target, Tgtpointer
  305.   play "Boing" tempo 240 "d4 e f g fh. ee d c d e f gq a gw"
  306.   answer "Congratulations! You Win! ‚Äî " & Target with "Archive" or "Definition" or "Play Again"
  307.  
  308.   if it is "Archive" then
  309.     Archive
  310.     PlayAgain
  311.   end if
  312.  
  313.   if it is "Play Again" then
  314.     PlayAgain
  315.     exit youwin
  316.   end if
  317.  
  318.  
  319.   if it is "Definition" then
  320.     definition
  321.   end if
  322.  
  323. end youwin
  324.  
  325. on youlose
  326.   send mouseUp to card btn "Give Up"
  327. end youlose
  328.  
  329.  
  330.  
  331.  
  332. -- part 2 (field)
  333. -- low flags: 01
  334. -- high flags: 2000
  335. -- rect: left=164 top=121 right=192 bottom=406
  336. -- title width / last selected line: 0
  337. -- icon id / first selected line: 0 / 0
  338. -- text alignment: 0
  339. -- font id: 3
  340. -- text size: 9
  341. -- style flags: 256
  342. -- line height: 12
  343. -- part name: Message
  344.  
  345.  
  346. -- part 4 (field)
  347. -- low flags: 01
  348. -- high flags: 0000
  349. -- rect: left=16 top=49 right=326 bottom=133
  350. -- title width / last selected line: 0
  351. -- icon id / first selected line: 0 / 0
  352. -- text alignment: 0
  353. -- font id: 4
  354. -- text size: 9
  355. -- style flags: 0
  356. -- line height: 12
  357. -- part name: Results
  358.  
  359.  
  360. -- part 5 (button)
  361. -- low flags: 80
  362. -- high flags: 0004
  363. -- rect: left=299 top=161 right=334 bottom=436
  364. -- title width / last selected line: 0
  365. -- icon id / first selected line: 0 / 0
  366. -- text alignment: 1
  367. -- font id: 0
  368. -- text size: 12
  369. -- style flags: 0
  370. -- line height: 16
  371. -- part name: Background
  372. ----- HyperTalk script -----
  373. on mouseUp
  374.   click at 321,100
  375.  
  376. end mouseUp
  377.  
  378.  
  379.  
  380. -- part 6 (button)
  381. -- low flags: 80
  382. -- high flags: 8003
  383. -- rect: left=306 top=165 right=187 bottom=329
  384. -- title width / last selected line: 0
  385. -- icon id / first selected line: 0 / 0
  386. -- text alignment: 1
  387. -- font id: 0
  388. -- text size: 12
  389. -- style flags: 0
  390. -- line height: 16
  391. -- part name: A
  392. ----- HyperTalk script -----
  393. on mouseUp
  394.   get the hilite of btn A
  395.   set the hilite of btn A to not it
  396.   click at 321,100
  397. end mouseUp
  398.  
  399.  
  400.  
  401. -- part 7 (button)
  402. -- low flags: 80
  403. -- high flags: 8003
  404. -- rect: left=332 top=165 right=187 bottom=355
  405. -- title width / last selected line: 0
  406. -- icon id / first selected line: 0 / 0
  407. -- text alignment: 1
  408. -- font id: 0
  409. -- text size: 12
  410. -- style flags: 0
  411. -- line height: 16
  412. -- part name: B
  413. ----- HyperTalk script -----
  414. on mouseUp
  415.   get the hilite of btn B
  416.   set the hilite of btn B to not it
  417.   click at 321,100
  418. end mouseUp
  419.  
  420.  
  421.  
  422. -- part 8 (button)
  423. -- low flags: 80
  424. -- high flags: 8003
  425. -- rect: left=357 top=165 right=187 bottom=380
  426. -- title width / last selected line: 0
  427. -- icon id / first selected line: 0 / 0
  428. -- text alignment: 1
  429. -- font id: 0
  430. -- text size: 12
  431. -- style flags: 0
  432. -- line height: 16
  433. -- part name: C
  434. ----- HyperTalk script -----
  435. on mouseUp
  436.   get the hilite of btn C
  437.   set the hilite of btn C to not it
  438.   click at 321,100
  439. end mouseUp
  440.  
  441.  
  442.  
  443. -- part 9 (button)
  444. -- low flags: 80
  445. -- high flags: 8003
  446. -- rect: left=382 top=165 right=187 bottom=405
  447. -- title width / last selected line: 0
  448. -- icon id / first selected line: 0 / 0
  449. -- text alignment: 1
  450. -- font id: 0
  451. -- text size: 12
  452. -- style flags: 0
  453. -- line height: 16
  454. -- part name: D
  455. ----- HyperTalk script -----
  456. on mouseUp
  457.   get the hilite of btn D
  458.   set the hilite of btn D to not it
  459.   click at 321,100
  460. end mouseUp
  461.  
  462.  
  463.  
  464. -- part 10 (button)
  465. -- low flags: 80
  466. -- high flags: 8003
  467. -- rect: left=407 top=165 right=187 bottom=430
  468. -- title width / last selected line: 0
  469. -- icon id / first selected line: 0 / 0
  470. -- text alignment: 1
  471. -- font id: 0
  472. -- text size: 12
  473. -- style flags: 0
  474. -- line height: 16
  475. -- part name: E
  476. ----- HyperTalk script -----
  477. on mouseUp
  478.   get the hilite of btn E
  479.   set the hilite of btn E to not it
  480.   click at 321,100
  481. end mouseUp
  482.  
  483.  
  484.  
  485. -- part 11 (button)
  486. -- low flags: 80
  487. -- high flags: 8003
  488. -- rect: left=306 top=189 right=211 bottom=329
  489. -- title width / last selected line: 0
  490. -- icon id / first selected line: 0 / 0
  491. -- text alignment: 1
  492. -- font id: 0
  493. -- text size: 12
  494. -- style flags: 0
  495. -- line height: 16
  496. -- part name: F
  497. ----- HyperTalk script -----
  498. on mouseUp
  499.   get the hilite of btn F
  500.   set the hilite of btn F to not it
  501.   click at 321,100
  502. end mouseUp
  503.  
  504.  
  505.  
  506. -- part 12 (button)
  507. -- low flags: 80
  508. -- high flags: 8003
  509. -- rect: left=332 top=189 right=211 bottom=355
  510. -- title width / last selected line: 0
  511. -- icon id / first selected line: 0 / 0
  512. -- text alignment: 1
  513. -- font id: 0
  514. -- text size: 12
  515. -- style flags: 0
  516. -- line height: 16
  517. -- part name: G
  518. ----- HyperTalk script -----
  519. on mouseUp
  520.   get the hilite of btn G
  521.   set the hilite of btn G to not it
  522.   click at 321,100
  523. end mouseUp
  524.  
  525.  
  526.  
  527. -- part 13 (button)
  528. -- low flags: 80
  529. -- high flags: 8003
  530. -- rect: left=357 top=189 right=211 bottom=380
  531. -- title width / last selected line: 0
  532. -- icon id / first selected line: 0 / 0
  533. -- text alignment: 1
  534. -- font id: 0
  535. -- text size: 12
  536. -- style flags: 0
  537. -- line height: 16
  538. -- part name: H
  539. ----- HyperTalk script -----
  540. on mouseUp
  541.   get the hilite of btn H
  542.   set the hilite of btn H to not it
  543.   click at 321,100
  544. end mouseUp
  545.  
  546.  
  547.  
  548. -- part 14 (button)
  549. -- low flags: 80
  550. -- high flags: 8003
  551. -- rect: left=382 top=189 right=211 bottom=405
  552. -- title width / last selected line: 0
  553. -- icon id / first selected line: 0 / 0
  554. -- text alignment: 1
  555. -- font id: 0
  556. -- text size: 12
  557. -- style flags: 0
  558. -- line height: 16
  559. -- part name: I
  560. ----- HyperTalk script -----
  561. on mouseUp
  562.   get the hilite of btn I
  563.   set the hilite of btn I to not it
  564.   click at 321,100
  565. end mouseUp
  566.  
  567.  
  568.  
  569. -- part 15 (button)
  570. -- low flags: 80
  571. -- high flags: 8003
  572. -- rect: left=407 top=189 right=211 bottom=430
  573. -- title width / last selected line: 0
  574. -- icon id / first selected line: 0 / 0
  575. -- text alignment: 1
  576. -- font id: 0
  577. -- text size: 12
  578. -- style flags: 0
  579. -- line height: 16
  580. -- part name: J
  581. ----- HyperTalk script -----
  582. on mouseUp
  583.   get the hilite of btn J
  584.   set the hilite of btn J to not it
  585.   click at 321,100
  586. end mouseUp
  587.  
  588.  
  589.  
  590. -- part 16 (button)
  591. -- low flags: 80
  592. -- high flags: 8003
  593. -- rect: left=306 top=213 right=235 bottom=329
  594. -- title width / last selected line: 0
  595. -- icon id / first selected line: 0 / 0
  596. -- text alignment: 1
  597. -- font id: 0
  598. -- text size: 12
  599. -- style flags: 0
  600. -- line height: 16
  601. -- part name: K
  602. ----- HyperTalk script -----
  603. on mouseUp
  604.   get the hilite of btn K
  605.   set the hilite of btn K to not it
  606.   click at 321,100
  607. end mouseUp
  608.  
  609.  
  610.  
  611.  
  612. -- part 17 (button)
  613. -- low flags: 80
  614. -- high flags: 8003
  615. -- rect: left=332 top=213 right=235 bottom=355
  616. -- title width / last selected line: 0
  617. -- icon id / first selected line: 0 / 0
  618. -- text alignment: 1
  619. -- font id: 0
  620. -- text size: 12
  621. -- style flags: 0
  622. -- line height: 16
  623. -- part name: L
  624. ----- HyperTalk script -----
  625. on mouseUp
  626.   get the hilite of btn L
  627.   set the hilite of btn L to not it
  628.   click at 321,100
  629. end mouseUp
  630.  
  631.  
  632.  
  633. -- part 18 (button)
  634. -- low flags: 80
  635. -- high flags: 8003
  636. -- rect: left=357 top=213 right=235 bottom=380
  637. -- title width / last selected line: 0
  638. -- icon id / first selected line: 0 / 0
  639. -- text alignment: 1
  640. -- font id: 0
  641. -- text size: 12
  642. -- style flags: 0
  643. -- line height: 16
  644. -- part name: M
  645. ----- HyperTalk script -----
  646. on mouseUp
  647.   get the hilite of btn M
  648.   set the hilite of btn M to not it
  649.   click at 321,100
  650. end mouseUp
  651.  
  652.  
  653.  
  654. -- part 19 (button)
  655. -- low flags: 80
  656. -- high flags: 8003
  657. -- rect: left=382 top=213 right=235 bottom=405
  658. -- title width / last selected line: 0
  659. -- icon id / first selected line: 0 / 0
  660. -- text alignment: 1
  661. -- font id: 0
  662. -- text size: 12
  663. -- style flags: 0
  664. -- line height: 16
  665. -- part name: N
  666. ----- HyperTalk script -----
  667. on mouseUp
  668.   get the hilite of btn N
  669.   set the hilite of btn N to not it
  670.   click at 321,100
  671. end mouseUp
  672.  
  673.  
  674.  
  675. -- part 20 (button)
  676. -- low flags: 80
  677. -- high flags: 8003
  678. -- rect: left=407 top=213 right=235 bottom=430
  679. -- title width / last selected line: 0
  680. -- icon id / first selected line: 0 / 0
  681. -- text alignment: 1
  682. -- font id: 0
  683. -- text size: 12
  684. -- style flags: 0
  685. -- line height: 16
  686. -- part name: O
  687. ----- HyperTalk script -----
  688. on mouseUp
  689.   get the hilite of btn O
  690.   set the hilite of btn O to not it
  691.   click at 321,100
  692. end mouseUp
  693.  
  694.  
  695.  
  696. -- part 21 (button)
  697. -- low flags: 80
  698. -- high flags: 8003
  699. -- rect: left=306 top=237 right=259 bottom=329
  700. -- title width / last selected line: 0
  701. -- icon id / first selected line: 0 / 0
  702. -- text alignment: 1
  703. -- font id: 0
  704. -- text size: 12
  705. -- style flags: 0
  706. -- line height: 16
  707. -- part name: P
  708. ----- HyperTalk script -----
  709. on mouseUp
  710.   get the hilite of btn P
  711.   set the hilite of btn P to not it
  712.   click at 321,100
  713. end mouseUp
  714.  
  715.  
  716.  
  717. -- part 22 (button)
  718. -- low flags: 80
  719. -- high flags: 8003
  720. -- rect: left=332 top=237 right=259 bottom=355
  721. -- title width / last selected line: 0
  722. -- icon id / first selected line: 0 / 0
  723. -- text alignment: 1
  724. -- font id: 0
  725. -- text size: 12
  726. -- style flags: 0
  727. -- line height: 16
  728. -- part name: Q
  729. ----- HyperTalk script -----
  730. on mouseUp
  731.   get the hilite of btn Q
  732.   set the hilite of btn Q to not it
  733.   click at 321,100
  734. end mouseUp
  735.  
  736.  
  737.  
  738. -- part 23 (button)
  739. -- low flags: 80
  740. -- high flags: 8003
  741. -- rect: left=357 top=237 right=259 bottom=380
  742. -- title width / last selected line: 0
  743. -- icon id / first selected line: 0 / 0
  744. -- text alignment: 1
  745. -- font id: 0
  746. -- text size: 12
  747. -- style flags: 0
  748. -- line height: 16
  749. -- part name: R
  750. ----- HyperTalk script -----
  751. on mouseUp
  752.   get the hilite of btn R
  753.   set the hilite of btn R to not it
  754.   click at 321,100
  755. end mouseUp
  756.  
  757.  
  758.  
  759. -- part 24 (button)
  760. -- low flags: 80
  761. -- high flags: 8003
  762. -- rect: left=382 top=237 right=259 bottom=405
  763. -- title width / last selected line: 0
  764. -- icon id / first selected line: 0 / 0
  765. -- text alignment: 1
  766. -- font id: 0
  767. -- text size: 12
  768. -- style flags: 0
  769. -- line height: 16
  770. -- part name: S
  771. ----- HyperTalk script -----
  772. on mouseUp
  773.   get the hilite of btn S
  774.   set the hilite of btn S to not it
  775.   click at 321,100
  776. end mouseUp
  777.  
  778.  
  779.  
  780. -- part 25 (button)
  781. -- low flags: 80
  782. -- high flags: 8003
  783. -- rect: left=407 top=237 right=259 bottom=430
  784. -- title width / last selected line: 0
  785. -- icon id / first selected line: 0 / 0
  786. -- text alignment: 1
  787. -- font id: 0
  788. -- text size: 12
  789. -- style flags: 0
  790. -- line height: 16
  791. -- part name: T
  792. ----- HyperTalk script -----
  793. on mouseUp
  794.   get the hilite of btn T
  795.   set the hilite of btn T to not it
  796.   click at 321,100
  797. end mouseUp
  798.  
  799.  
  800.  
  801. -- part 26 (button)
  802. -- low flags: 80
  803. -- high flags: 8003
  804. -- rect: left=306 top=261 right=283 bottom=329
  805. -- title width / last selected line: 0
  806. -- icon id / first selected line: 0 / 0
  807. -- text alignment: 1
  808. -- font id: 0
  809. -- text size: 12
  810. -- style flags: 0
  811. -- line height: 16
  812. -- part name: U
  813. ----- HyperTalk script -----
  814. on mouseUp
  815.   get the hilite of btn U
  816.   set the hilite of btn U to not it
  817.   click at 321,100
  818. end mouseUp
  819.  
  820.  
  821.  
  822. -- part 27 (button)
  823. -- low flags: 80
  824. -- high flags: 8003
  825. -- rect: left=332 top=261 right=283 bottom=355
  826. -- title width / last selected line: 0
  827. -- icon id / first selected line: 0 / 0
  828. -- text alignment: 1
  829. -- font id: 0
  830. -- text size: 12
  831. -- style flags: 0
  832. -- line height: 16
  833. -- part name: V
  834. ----- HyperTalk script -----
  835. on mouseUp
  836.   get the hilite of btn V
  837.   set the hilite of btn V to not it
  838.   click at 321,100
  839. end mouseUp
  840.  
  841.  
  842.  
  843. -- part 28 (button)
  844. -- low flags: 80
  845. -- high flags: 8003
  846. -- rect: left=357 top=261 right=283 bottom=380
  847. -- title width / last selected line: 0
  848. -- icon id / first selected line: 0 / 0
  849. -- text alignment: 1
  850. -- font id: 0
  851. -- text size: 12
  852. -- style flags: 0
  853. -- line height: 16
  854. -- part name: W
  855. ----- HyperTalk script -----
  856. on mouseUp
  857.   get the hilite of btn W
  858.   set the hilite of btn W to not it
  859.   click at 321,100
  860. end mouseUp
  861.  
  862.  
  863.  
  864. -- part 29 (button)
  865. -- low flags: 80
  866. -- high flags: 8003
  867. -- rect: left=382 top=261 right=283 bottom=405
  868. -- title width / last selected line: 0
  869. -- icon id / first selected line: 0 / 0
  870. -- text alignment: 1
  871. -- font id: 0
  872. -- text size: 12
  873. -- style flags: 0
  874. -- line height: 16
  875. -- part name: X
  876. ----- HyperTalk script -----
  877. on mouseUp
  878.   get the hilite of btn X
  879.   set the hilite of btn X to not it
  880.   click at 321,100
  881. end mouseUp
  882.  
  883.  
  884.  
  885. -- part 30 (button)
  886. -- low flags: 80
  887. -- high flags: 8003
  888. -- rect: left=407 top=261 right=283 bottom=430
  889. -- title width / last selected line: 0
  890. -- icon id / first selected line: 0 / 0
  891. -- text alignment: 1
  892. -- font id: 0
  893. -- text size: 12
  894. -- style flags: 0
  895. -- line height: 16
  896. -- part name: Y
  897. ----- HyperTalk script -----
  898. on mouseUp
  899.   get the hilite of btn Y
  900.   set the hilite of btn Y to not it
  901.   click at 321,100
  902. end mouseUp
  903.  
  904.  
  905.  
  906. -- part 32 (button)
  907. -- low flags: 80
  908. -- high flags: 8003
  909. -- rect: left=357 top=285 right=307 bottom=380
  910. -- title width / last selected line: 0
  911. -- icon id / first selected line: 0 / 0
  912. -- text alignment: 1
  913. -- font id: 0
  914. -- text size: 12
  915. -- style flags: 0
  916. -- line height: 16
  917. -- part name: Z
  918. ----- HyperTalk script -----
  919. on mouseUp
  920.   get the hilite of btn Z
  921.   set the hilite of btn Z to not it
  922.   click at 321,100
  923. end mouseUp
  924.  
  925.  
  926.  
  927. -- part 33 (button)
  928. -- low flags: 80
  929. -- high flags: 8003
  930. -- rect: left=306 top=285 right=307 bottom=355
  931. -- title width / last selected line: 0
  932. -- icon id / first selected line: 0 / 0
  933. -- text alignment: 1
  934. -- font id: 0
  935. -- text size: 12
  936. -- style flags: 0
  937. -- line height: 16
  938. -- part name: Reset
  939. ----- HyperTalk script -----
  940. on mouseUp
  941.   Repeat with n = 2 to 27
  942.     set the hilite of btn n to true
  943.   end repeat
  944.   click at 321,100
  945. end mouseUp
  946.  
  947.  
  948. -- part 34 (button)
  949. -- low flags: 80
  950. -- high flags: 8003
  951. -- rect: left=381 top=285 right=307 bottom=430
  952. -- title width / last selected line: 0
  953. -- icon id / first selected line: 0 / 0
  954. -- text alignment: 1
  955. -- font id: 0
  956. -- text size: 12
  957. -- style flags: 0
  958. -- line height: 16
  959. -- part name: Clear
  960. ----- HyperTalk script -----
  961. on mouseUp
  962.   Repeat with n = 2 to 27
  963.     set the hilite of btn n to false
  964.   end repeat
  965.   click at 321,100
  966. end mouseUp
  967.  
  968.  
  969.  
  970. -- part 35 (button)
  971. -- low flags: 80
  972. -- high flags: 8003
  973. -- rect: left=344 top=308 right=330 bottom=393
  974. -- title width / last selected line: 0
  975. -- icon id / first selected line: 0 / 0
  976. -- text alignment: 1
  977. -- font id: 0
  978. -- text size: 12
  979. -- style flags: 0
  980. -- line height: 16
  981. -- part name: Hide
  982. ----- HyperTalk script -----
  983. on mouseUp
  984.   set the cursor to 4
  985.   set the lockscreen to true
  986.   Repeat with n = 1 to 30
  987.     set the visible of btn n to false
  988.   end repeat
  989.   set the visible of btn "AlphaPad" to true
  990.   set the lockscreen to false
  991.   click at 321,100
  992. end mouseUp
  993.  
  994.  
  995. -- part 36 (button)
  996. -- low flags: 00
  997. -- high flags: 8003
  998. -- rect: left=330 top=250 right=310 bottom=385
  999. -- title width / last selected line: 0
  1000. -- icon id / first selected line: 7387 / 7387
  1001. -- text alignment: 1
  1002. -- font id: 0
  1003. -- text size: 12
  1004. -- style flags: 0
  1005. -- line height: 16
  1006. -- part name: AlphaPad
  1007. ----- HyperTalk script -----
  1008. on mouseUp
  1009.   set the cursor to 4
  1010.   set the lockscreen to true
  1011.   repeat with n = 1 to 30
  1012.     set the visible of btn n to true
  1013.     set the hilite of btn n to false
  1014.   end repeat
  1015.   set the visible of btn "AlphaPad" to false
  1016.   set the lockscreen to false
  1017.   click at 321,100
  1018. end mouseUp
  1019.  
  1020.  
  1021.  
  1022. -- part 38 (button)
  1023. -- low flags: 00
  1024. -- high flags: 8000
  1025. -- rect: left=155 top=250 right=310 bottom=210
  1026. -- title width / last selected line: 0
  1027. -- icon id / first selected line: 31685 / 31685
  1028. -- text alignment: 1
  1029. -- font id: 0
  1030. -- text size: 12
  1031. -- style flags: 0
  1032. -- line height: 16
  1033. -- part name: Give Up
  1034. ----- HyperTalk script -----
  1035. on mouseUp
  1036.   Global Target, Tgtpointer
  1037.  
  1038.   play boing
  1039.   answer "Sorry! You Lose ‚Äî Answer was: " & Target with  "Archive" or "Definition" or "Play Again"
  1040.  
  1041.   if it is "Archive" then
  1042.     Archive
  1043.     PlayAgain
  1044.   end if
  1045.  
  1046.   if it is "Play Again" then
  1047.     PlayAgain
  1048.   end if
  1049.  
  1050.   if it is "Definition" then
  1051.     definition
  1052.     exit mouseUp
  1053.   end if
  1054.  
  1055.  
  1056. end mouseUp
  1057.  
  1058.  
  1059.  
  1060. -- part 39 (button)
  1061. -- low flags: 00
  1062. -- high flags: 8003
  1063. -- rect: left=443 top=150 right=210 bottom=498
  1064. -- title width / last selected line: 0
  1065. -- icon id / first selected line: 8594 / 8594
  1066. -- text alignment: 1
  1067. -- font id: 0
  1068. -- text size: 12
  1069. -- style flags: 0
  1070. -- line height: 16
  1071. -- part name: Filters
  1072. ----- HyperTalk script -----
  1073. on mouseUp
  1074.   go card "Controls"
  1075. end mouseUp
  1076.  
  1077.  
  1078.  
  1079. -- part 41 (field)
  1080. -- low flags: 80
  1081. -- high flags: 0004
  1082. -- rect: left=288 top=198 right=213 bottom=404
  1083. -- title width / last selected line: 0
  1084. -- icon id / first selected line: 0 / 0
  1085. -- text alignment: 1
  1086. -- font id: 3
  1087. -- text size: 9
  1088. -- style flags: 256
  1089. -- line height: 12
  1090. -- part name: Clickmsg
  1091.  
  1092.  
  1093. -- part 42 (button)
  1094. -- low flags: 00
  1095. -- high flags: 8003
  1096. -- rect: left=443 top=71 right=131 bottom=498
  1097. -- title width / last selected line: 0
  1098. -- icon id / first selected line: 530 / 530
  1099. -- text alignment: 1
  1100. -- font id: 0
  1101. -- text size: 12
  1102. -- style flags: 0
  1103. -- line height: 16
  1104. -- part name: Change
  1105. ----- HyperTalk script -----
  1106. on mouseUp
  1107.   go to first card
  1108. end mouseUp
  1109.  
  1110.  
  1111.  
  1112. -- part 40 (button)
  1113. -- low flags: 80
  1114. -- high flags: 0000
  1115. -- rect: left=0 top=0 right=342 bottom=512
  1116. -- title width / last selected line: 0
  1117. -- icon id / first selected line: 0 / 0
  1118. -- text alignment: 1
  1119. -- font id: 0
  1120. -- text size: 12
  1121. -- style flags: 0
  1122. -- line height: 16
  1123. -- part name: OK
  1124. ----- HyperTalk script -----
  1125. on mouseUp
  1126.   put empty into card field "Message"
  1127.   hide card field "ClickMsg"
  1128.   hide card btn "OK"
  1129.   put empty into card field "Results"
  1130.   put empty into card field "Guess"
  1131.   picktarget
  1132.   show card btn "Filters"
  1133.   show card btn "Change"
  1134. end mouseUp
  1135.  
  1136.  
  1137.  
  1138. -- part 43 (button)
  1139. -- low flags: 00
  1140. -- high flags: 8000
  1141. -- rect: left=443 top=251 right=312 bottom=498
  1142. -- title width / last selected line: 0
  1143. -- icon id / first selected line: 1011 / 1011
  1144. -- text alignment: 1
  1145. -- font id: 0
  1146. -- text size: 12
  1147. -- style flags: 0
  1148. -- line height: 16
  1149. -- part name: Go Home
  1150. ----- HyperTalk script -----
  1151. on mouseUp
  1152.   Go Home
  1153. end mouseUp
  1154.  
  1155.  
  1156.  
  1157. -- part 45 (button)
  1158. -- low flags: 00
  1159. -- high flags: 8000
  1160. -- rect: left=228 top=251 right=312 bottom=291
  1161. -- title width / last selected line: 0
  1162. -- icon id / first selected line: 32650 / 32650
  1163. -- text alignment: 1
  1164. -- font id: 0
  1165. -- text size: 12
  1166. -- style flags: 0
  1167. -- line height: 16
  1168. -- part name: Go Archive
  1169. ----- HyperTalk script -----
  1170. on mouseUp
  1171.   Set the lockscreen to true
  1172.   Go Card "Archive"
  1173.   -- scroll the field so we can see the last item
  1174.   put the textheight of card field "Archive" into lineht
  1175.   put the rect of card field "Archive" into temp
  1176.   put (item 4 of temp) - (item 2 of temp) into fieldht
  1177.   put the number of lines of card field "Archive" into nolines
  1178.   put (nolines + 2) * lineht - fieldht into temp
  1179.   if temp < 0 then put 0 into temp
  1180.   set the scroll of card field "Archive" to temp
  1181.   Set the lockscreen to false
  1182. end mouseUp
  1183.  
  1184.  
  1185.  
  1186. -- part contents for card part 41
  1187. ----- text -----
  1188. Click to Continue